//
//  RxSwiftHeader.swift
//  test-ios
//
//  Created by wyz5204 on 2023/4/15.
//

import Foundation
import UIKit

class RxSwiftHeader : UICollectionReusableView {
    
    lazy var label : UILabel = {
        return UILabel().then { view in
            view.textColor = .red
            view.textAlignment = .center
        }
    }()
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        self.addSubview(label)
        label.snp.makeConstraints { make in
            make.edges.equalToSuperview()
        }
    }
    
    required init(coder:NSCoder) {
        fatalError("init(coder:) has not bean implemented")
    }
    
    func binder(_ value : String){
        label.text = value
    }
}
